package com.five.zhh.fiveinfive.room.message.operate;

import com.five.zhh.fiveinfive.room.message.OperateTittle;
import com.five.zhh.fiveinfive.room.message.UserOperate;
import com.five.zhh.fiveinfive.room.user.UserInfo;
import lombok.Data;

/**
 * 玩家发起投降申请
 */
@Data
public class GiveUpOperate extends UserOperate {

    /**
     * 报文发送者
     */
    private UserInfo userInfo;

    /**
     * 是否为投降申请报文
     */
    private Boolean isGiveUp;

    /**
     * 是否为接受surrender报文
     */
    private Boolean isAccept;

    /**
     * 是否接受投降
     */
    private Boolean accept;


    public GiveUpOperate() {
        super(OperateTittle.GIVE_UP);
    }
    public GiveUpOperate(String roomCode, Boolean isGiveUp, Boolean isAccept) {
        super(OperateTittle.GIVE_UP, roomCode);
        this.isGiveUp = isGiveUp;
        this.isAccept = isAccept;
    }
}
